#include<stdio.h>
int main()
{
    int a,n,i,j;
    int sum = 0;

    scanf("%d %d",&a,&n);

    for(i=1;i<=n;i++)
    {
        j = j*10+1;
        sum = sum + j*a;
    }

    printf("%d",sum);

    return 0;
}